package fr.bda.cloud.tray;

public interface CloudTrayDialogListener {

	/**
	 * Call by the dialog when it's initialized
	 * 
	 * @param dialog
	 *            The initialized dialog
	 */
	public <C extends CloudTrayDialogController> void onDialogInit(CloudTrayDialog<C> dialog);

	/**
	 * This method is called by the dialog when the user pressed on OK button
	 * and preValid is OK
	 * 
	 * @param dialog
	 *            The caller dialog
	 */
	public <C extends CloudTrayDialogController> void onDialogValid(CloudTrayDialog<C> dialog);

	/**
	 * Call by the opened dialog when the user press CANCEL button
	 * 
	 * @param dialog
	 *            The opened dialog
	 */
	public <C extends CloudTrayDialogController> void onDialogCancel(CloudTrayDialog<C> dialog);
}
